#include<iostream>
#include<list>
#include<algorithm>
using namespace std;

void test()
{
 list<int> lt;
 lt.push_front(0);
 lt.push_front(1);
 
 lt.push_back(3);

 list<int>::iterator pos =  find(lt.begin(),lt.end(),0);
 lt.insert(pos,9);

 for(auto e : lt)
 {
   cout<<e<<" ";
 }
 cout<<endl;


}

int main()
{
  
  test(); 
   
  return 0;
}
